package com.wang.demo05;

public class Custorm {
    public static void main(String[] args){
        BookStory bookStory=new BookStory();
        ProxyInvocationHandler phi=new ProxyInvocationHandler();
        phi.setProxyclass(bookStory);
        Book book=(Book)phi.getproxy();//由于动态代理返回的是一个接口，所以用接口来命名
        book.add();
    }
}
